<?php

namespace Database\Factories;

use App\Models\ProductSku;
use Illuminate\Database\Eloquent\Factories\Factory;

class ProductSkuFactory extends Factory
{
    protected $model = ProductSku::class;
    
    public function definition()
    {
	    $pic = $this->faker->randomElement([
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/7kG1HekGK6.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/1B3n0ATKrn.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/r3BNRe4zXG.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/C0bVuKB2nt.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/82Wf2sg8gM.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/nIvBAQO5Pj.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/XrtIwzrxj7.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/uYEHCJ1oRp.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/2JMRaFwRpo.jpg",
		    "https://cdn.learnku.com/uploads/images/201806/01/5320/pa7DrV43Mw.jpg",
	    ]);
    	
	    return [
		    'name'          => $this->faker->word,
		    'brief'         => $this->faker->sentence,
		    'pic'           => $pic,
		    'price_cost'    => 1.00,
		    'price'         => 200.00,
		    'price_vip'     => 150.00,
		    'stock'         => $this->faker->randomNumber(5),
	    ];
    }
}
